package com.zdlyh.service;

import com.zdlyh.domain.ResponseResult;
import com.zdlyh.domain.dto.RoleDto;
import com.zdlyh.domain.entity.Role;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zdlyh.domain.vo.PageVo;

import java.util.List;

public interface RoleService extends IService<Role> {
    // 根据当前登录的用户返回用户角色信息
    List<String> getRoleKeyByUserId(Long userId);

    ResponseResult<PageVo> getRoleList(Integer pageNum, Integer pageSize, RoleDto roleDto);

    // 改变角色状态
    ResponseResult changeStatus(RoleDto roleDto);

    ResponseResult addRole(RoleDto roleDto);

    ResponseResult getRoleById(Long id);

    ResponseResult updateRole(RoleDto roleDto);

    ResponseResult deleteRoleById(Long id);

    List<Role> getAllRole();
}
